<div class="hd-20161231">
    <div class="hd-banner-bg banner-bg1">
      <div class="moveBg"></div>
      <div class="hd-banenr">
        <div class="banner-text">
            Entrar <a href="#">Geekvida.es >></a>
        </div>
        <img class="bounceMove leftUp" src="./images/201612302.png">
        <img class="bounceMove lefDown" src="./images/201612303.png">
        <img class="bounceMove rightUp" src="./images/201612304.png">
        <img class="shansuoMove positionLeft" src="./images/201612305.png">
        <img class="shansuoMove positionRight" src="./images/201612306.png">
      </div>
    </div>
   <div class="hd-main-content">
        <div class="w990">
          <div class="panel-layout">
            <ul>
              <li><a class="hdPageLInk" href="#display1">XIAOMI</a></li>
              <li><a class="hdPageLInk" href="#display2">IPHONE</a></li>
              <li style="height: auto;"><a class="hdPageLInk" href="#display3" style="line-height: 18px; padding: 13px 0px;">Móviles<br>Reformados</a></li>
              <li><a class="hdPageLInk" href="#display4">GADGETS</a></li>
              <li style="margin-bottom:0px;"><a class="hdPageLInk" href="#display5">Menos de 9.99€</a></li>
              <li class="hdLinkTop"><a class="hdPageLInk" href="#Top"></a></li>
            </ul>
          </div>
        </div>
    </div>
  <style>
    .hd-20161231{background: #da3311;min-width: 1300px;}
    .hd-20161231 .banner-bg1{background: url(./images/201612311.jpg)no-repeat center top;height:745px;min-width: 1300px;position: relative;}
    .hd-20161231 .hd-banenr{height:745px;position: relative;width: 1103px;margin: 0px auto;}
    .banner-bg1 .moveBg {position: absolute;width:100%;height:745px;background:url(./images/201612301.png) repeat;top:0px;left:0px;}
    .hd-banenr .banner-text{position: absolute; right: 0px; font-size: 14px; width: 160px; text-align: center; border: 1px solid #00ffff; background: #074c5a; padding: 5px; color: #fff;}
    .hd-banenr .banner-text a {color:#FEF102;}
    .hd-banenr .bounceMove {position: absolute;-webkit-animation: bounce-down 3s linear infinite; animation: bounce-down 3s linear infinite;}
    .hd-banenr .leftUp {left:-80px;top:340px;}
    .hd-banenr .lefDown {left:80px;top:200px;-webkit-animation-delay: 0.5s;animation-delay: 0.5s;}
    .hd-banenr .rightUp {right:-35px;top:300px;-webkit-animation-delay: 1s;animation-delay: 1s;}
    .hd-banenr .shansuoMove {position: absolute;animation:yishan 0.5s 1s alternate infinite both ease-out; -webkit-animation:yishan 0.5s 1s alternate infinite both ease-out;}
    .hd-banenr .positionLeft {left: 68px;bottom:430px;}
    .hd-banenr .positionRight {right: 0px;bottom:500px;}
    .hd-main-content {background:url(./images/201612318.jpg) repeat-y center center;}

    .hd-main-content .hd-display-container {position: relative;background:url(./images/201612317.jpg) no-repeat center top;text-align: center;}
    .hd-display-block {background:url(./images/201612319.jpg) no-repeat center bottom;padding-bottom: 60px;}
  
    ul li.small-list {width:188px;margin:5px 5px 3px;background:#fff;}
    .hd-main-content .old-price {font-size: 14px;text-decoration: line-through;color:#ff6600;display: block;margin-top:5px;}
    .hd-main-content .current-price { font-size: 28px;font-weight: bold;color: #ff6600;line-height: 22px;}
    .small-list .discount-number2{position: absolute;height: 55px;width: 55px;font-size: 20px;color: #fff;font-weight: bold;top: 0px;right: 0px;line-height: 55px;text-align: center;background: #ff6600;border-radius: 50%;}
    .title-content .title-detail {text-align: center; padding-top: 70px; height: 45px; margin: 0px;}
    .title-content .hd-subtitle {margin:0px;font-size:18px;color:#fff;font-weight: normal;}
    .small-list .hd-btn-buy{width: 100%; position: absolute; left: 0px; bottom: -50px;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
    .small-list:hover .hd-btn-buy {bottom:0px;}
    ul li.small-list:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
    ul li.small-list:hover:before{opacity: 1;-webkit-transform: translateY(5px);transform: translateY(5px);}
    .hd-20161231 ul li {float: left;position: relative;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
    .title-content .w990 {position: relative;height:170px;}
    .hd-display-block .display {text-align:center;}
    .hd-product-list .lis1 {margin:20px 0px;}
    ul li.small-list:hover,.product-list ul li:hover {transform: translateY(-6px);-webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}
    ul li.small-list .product-img {width: 100%; padding: 10px; box-sizing: border-box;}
    .small-list .hd-link-img {display: block; text-align: center; font-size: 14px; height: 260px; overflow: hidden; position: relative;color:#666;}
    .small-list .hd-link-img:hover {color:#666;}
    .hd-link-img .product-info {display: block;height:30px;line-height:15px;overflow: hidden;padding:0px 10px;}
    .panel-layout{width: 214px; height:363px; position: fixed; top: 0; margin-left: 1005px;-webkit-transform: scale(0.01); -moz-transform: scale(0.01); -o-transform: scale(0.01); -ms-transform: scale(0.01); transform: scale(0.01); -webkit-transition: all .6s linear 0s; -moz-transition: all .6s linear 0s; -o-transition: all .6s linear 0s; -ms-transition: all .6s linear 0s; transition: all .6s linear 0s; visibility: hidden; text-align: center;background:url(./images/201612308.png) no-repeat center;}
    .panel-layout.active { visibility: visible; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1);}
    .panel-layout .panel-top {position: absolute; left: 0px; z-index: 999; top: 0px;}
    .panel-layout ul {position: absolute; left: 0px; width: 95%; top: 82px;}
    .panel-layout ul li{list-style: none; margin: 0px auto 10px;width: 100%; height: 30px;}
    .panel-layout ul li a{display: block; width: 100%; color: #fff; text-align: center; font-size: 16px; height: 100%; line-height: 32px;text-transform: uppercase;}
    .panel-layout ul li.current a,.panel-layout ul li a:hover{color:#fff100;}
    .panel-layout ul li.hdLinkTop {height:40px;} 
     @-webkit-keyframes bounce-down {
        25% {
          -webkit-transform: translateY(-15px);
        }
        50%, 100% {
          -webkit-transform: translateY(0);
        }
        75% {
         -webkit-transform: translateY(15px);
        }
      }

      @keyframes bounce-down {
        25% {
         transform: translateY(-15px);
        }
       50%, 100% {
         transform: translateY(0);
       }
       75% {
         transform: translateY(15px);
       }
      }

       @-webkit-keyframes yishan {
        0% {
          opacity:1;
        }
        100% {
          opacity:0;
        }
        
      }
      @keyframes yishan {
        0% {
          opacity:1;
        }
        100% {
          opacity:0;
        }
        
      }
  </style>

  <script type="text/javascript">
    (function($){
        $(function(){
          var str1 = '', str2 = ``;
          for(var i = 0; i < 15; i++){
            str1 += `<li class="small-list">
                      <a class="hd-link-img" href="#">
                        <img class="product-img" src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado">
                        <span class="product-info">Blackview Ultra A6 Plus 2GB 16GB Dorado</span>
                        <span class="old-price">129.95€</span>
                        <span class="current-price">99.95€</span>
                        <img class="hd-btn-buy" src="./images/201612315.jpg" alt="comprar">
                      </a>
                       <span class="discount-number2">-25€</span>
                    </li>`;
          }

          for(var i = 0; i < 5; i++){
            str2 += `<div class="hd-display-container" id="display${i + 1}">
                      <div class="hd-display-block">
                        <div class="title-content">
                          <div class="w990" style="height: 177px;">
                            <h2 class="title-detail" style="padding: 65px 0px 10px 0px;"><img src="./images/201612307.png" alt="Menos de 9.99€"></h2>
                            <h3 class="hd-subtitle">Precio increíble,que no se pierde!</h3>
                          </div>
                        </div>
                        <div class="display w990">
                          <div class="hd-product-list">
                              <ul class="lis1 clearfloat">${str1}</ul>
                          </div>
                        </div>
                      </div>
                    </div>`
          }
          $(".hd-main-content").prepend(str2);
          
          var sideNav = $(".panel-layout");
          $(window).on("scroll",function(){
            var sideNavShow = $(".hd-banner-bg").offset().top + $(".hd-banner-bg").outerHeight(true)-200;
            var modTop = [];
            if($(this).scrollTop()>=sideNavShow){
                sideNav.addClass("active");
              }
              else{
                sideNav.removeClass("active");
              }
            
            for (var i = 0; i < $(".panel-layout ul li .hdPageLInk").length - 1; i++) {
                modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-5;

                if ($(window).scrollTop() >= modTop[i]) {
                  $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
                };
              };
          });
          
          sideNav.find("li").find(".hdPageLInk").on("click",function(e){
            e.preventDefault();
            var aHash = this.hash;
            $("html,body").animate({
              scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
            });
          });

          function moveBgPostion(){
              var _xy = "2px 0",x=0;
              setInterval(function(){
                  x = x + 0.2;
                  _xy = x + "px 0";
                  $(".banner-bg1 .moveBg").css({backgroundPosition:_xy});
              },10);
          }
          moveBgPostion();
        });
    })(jQuery); 
  </script>